<?php
if (isset($judul_halaman))
    $this->load->view('header1', array('judul_halaman' => $judul_halaman));
//$this->load->view('leftSideBar1',array('judul_halaman'=>$judul_halaman));
else
    $this->load->view('header1');
//$this->load->view('leftSideBar1');
?>
<body>
    <div class="container-fluid">
        <div class="row">
            <?php $this->load->view('leftSideBar1'); ?>
            <div class="col-sm-8 col-sm-offset-4 col-md-9 col-md-offset-3 main">
                <?php $this->load->view('menu_atas_1'); ?>
                <div style="margin-left: 50px;">
                    <h1 class="page-header">Buat BrainTest Baru</h1>
                </div>
                <div class="row placeholders">
                    <form method="post" action="<?= base_url(); ?>braintest/do_create" class="cmxform form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-lg-3">Nama BrainTest</label>
                            <div class="col-lg-5">
                                <input type="text" name="nama_braintest" class=" form-control" style="color: #000"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-lg-3">Deskripsi</label>
                            <div class="col-lg-5">
                                <textarea name="deskripsi" class="form-control" rows="5" cols="50" style="color: #000"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-lg-3">Waktu Mulai</label>
                            <div class="col-lg-3">
                                <input type="text" name="waktu_mulai" class="form-control datepicker" readonly="" style="background-color: rgb(218, 205, 205); color: #000"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-lg-3">Wakru Selesai</label>
                            <div class="col-lg-3">
                                <input type="text" name="waktu_selesai" class=" form-control datepicker" readonly="" style="background-color: rgb(218, 205, 205); color: #000"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-lg-offset-2 col-lg-3">
                                <button class="btn btn-primary" type="submit">Buat</button>
                            </div>
                        </div>
                    </form>
                </div>


            </div>
        </div>

    </div>

    
    <?php
    $this->load->view('footer1');
    ?>
    <script>
         $('.datepicker').datepicker({
            format: 'dd-mm-yyyy'
        }).on('changeDate', function(ev) {
            $(this).datepicker('hide');
        }).data('datepicker');
    </script>